home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Tele / C / Comet2.1.3.cpt / include / config.h < prev    next >
Text File  |  1991-11-07  |  3KB  |  91 lines

  1. /*
  2.     Copyright Cornell University 1986.  All rights are reserved.
  3. */
  4.  
  5. /* 8/26/86 kevin added externs from config.c */
  6. /* 4/22/88 kevin added linewrap, server on/ask */
  7.  
  8. #include <osutil.h>
  9.  
  10. #define CONFID        0
  11. #define SERCONFID    1
  12. #define GLOBCONFID    2
  13.  
  14. struct config {
  15.     short version_number;            /* version of config struct */
  16.     short keyboard;                    /* mac v. mac+ */
  17.     short keypad;                    /* function, alt function, or numeric */
  18.     short dokeymacros;                /* macros on */
  19.     short ibm_mode;                    /* determines control actions */
  20.     short blockcurs;                /* block cursor or underline */
  21.     short changecurs;                /* blink cursor */
  22.     short escmap;                    /* ` == ESC */
  23.  
  24.     short ba_bs;                    /* BS == DEL */
  25.     short crtonl;                    /* CR == LF */
  26.     short typeahead;                /* typeahead on */
  27.     short ibmnulls;                    /* nullsareblanks on send */
  28.     short ibmsqueeze;                /* squeeze blanks out on insert */
  29.     short curseekmode;                /* cursor seeking mode */
  30.     char termwrap;                    /* wrap at EOL? */
  31.     char tftpserve;                    /* server on or off */
  32.     char tftpask;                    /* server asking on or off */
  33.     char filler1;                    /* junk */
  34.  
  35.     short fontsize;                    /* V.3 height of font in use */
  36.     short autoshrink;                /* shrink window on MF switch */
  37.     short shiftfield;                /* V.4 shift whole 3270 field, not just row on DEL */
  38.     char disableterm[TERMTYPEMAX];    /* V.5 disable corresponding terminal */
  39.     short color;                    /* V.6 color is enabled */
  40.     struct ibmcolormap ibmcolormap;    /* V.7 color map */
  41.     short trydsdraw;                /* V.7 */
  42.     short disposeonclose;            /* V.8 window disappears on close */
  43.     short normfont;                    /* V.8 font ids */
  44.     short highfont;
  45.     short vtfont;
  46.     short conntype;                    /* V.8 type of connection to make */
  47.     short vtkeypad;                    /* V.9 vt keypad type */
  48.     short logsession;                /* V.10 log session */
  49.     short filesession;                /*      log session in file */
  50.     short editload;                    /*         load .edit downloads automatically */
  51.     short editwrap;                    /*         wrap/unwrap .edit downloads automatically */
  52.     short autohangup;                /* V.11 hang up automatically on close */
  53.     short vtjumpscroll;                /* V.12 use vt100 jump scrolling */
  54.     short keypadswitch;                /*         switch standard keyboard +/- on keypad */
  55.     short logerase;                    /*         log (some) erased areas when logging */
  56.     short editupwrap;                /*         wrap/unwrap .edit downloads automatically */
  57.     short linecount;                /*         vt100/h19 #rows */
  58.     short linelength;                /*         vt100/h19 #columns  */
  59.     short ibm_type;                    /* kind of 3270 user has selected */
  60. };
  61.  
  62. /* for use by serial version CONF 1 */
  63.  
  64. struct serconfig {
  65.     short cport;                    /* TRUE if B port */
  66.     unsigned short cbaud;
  67.     unsigned short cparity;
  68.     unsigned short cstop;
  69.     unsigned short cdata;
  70. };
  71.  
  72.  
  73. /* a global CONF 2 resource format, one per app vs. per window */
  74.  
  75. struct globalconfig {
  76.     short tftpserve;
  77.     short tftpask;
  78.     short trydsdraw;
  79.     short riskydsdraw;
  80.     short quitonclose;
  81.     short version;
  82.     short mtcpsendasync;
  83.     short edresetselect;                /* kill em selection range after edit action */
  84.     short keypadswitch;                /* 3, switch SE key pad */
  85.     short courierprint;                /* 4, QD print using Courier font */
  86. };
  87.  
  88.  
  89. extern SysEnvRec environs;    /* global environment record */
  90.  
  91.